.TH std::ranges::drop_view::end 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::ranges::drop_view::end \- std::ranges::drop_view::end

.SH Synopsis
   constexpr auto end() requires (!__SimpleView<V>);           \fB(1)\fP \fI(since C++20)\fP
   constexpr auto end() const requires ranges::range<const V>; \fB(2)\fP \fI(since C++20)\fP

   Returns a sentinel or an iterator representing the end of the drop_view.

   Effectively returns ranges::end(base_), where base_ is the underlying view.

.SH Parameters

   \fI(none)\fP

.SH Return value

   A sentinel or an iterator representing the end of the view.

.SH Example


// Run this code

 #include <algorithm>
 #include <iostream>
 #include <iterator>
 #include <ranges>

 int main()
 {
     constexpr char url[]{"https://cppreference.com"};

     const auto p = std::distance(std::ranges::begin(url), std::ranges::find(url, '/'));
     auto site = std::ranges::drop_view{url, p + 2}; // drop the prefix "https://"

     for (auto it = site.begin(); it != site.end(); ++it)
         std::cout << *it; //                ^^^
     std::cout << '\\n';
 }

.SH Output:

 cppreference.com

.SH See also

   begin         returns an iterator to the beginning
   (C++20)       \fI(public member function)\fP
   ranges::begin returns an iterator to the beginning of a range
   (C++20)       (customization point object)
   ranges::end   returns a sentinel indicating the end of a range
   (C++20)       (customization point object)
